Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IItemStack;
- import crafttweaker.events.IEventManager;
- import crafttweaker.event.PlayerTickEvent;
- import crafttweaker.player.IPlayer;
- import crafttweaker.entity.IEntityLivingBase;
- import crafttweaker.potions.IPotion;
- import crafttweaker.potions.IPotionEffect;
- import crafttweaker.item.IItemDefinition;
- import crafttweaker.command.ICommand;
- import crafttweaker.command.ICommandManager;
- import crafttweaker.block.IBlock;
- import crafttweaker.block.IBlockDefinition;
- import crafttweaker.event.PlayerInteractBlockEvent;
- import crafttweaker.command.ICommandSender;
- events.onPlayerInteractBlock(
- function(event as crafttweaker.event.PlayerInteractBlockEvent) {
- if (event.block.definition.id == "minecraft:bed") {
- event.player.executeCommand('say I Feel Rested');
- event.player.executeCommand('effect @p regeneration 10 255');
- }
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment