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.event.PlayerInteractBlockEvent;
- import crafttweaker.command.ICommandSender;
- /* old script
- events.onPlayerInteractBlock;
- if(event.block.id == <minecraft:bed>) {
- Commands.call('say I Feel Rested', player, world, true, false);
- Commands.call('effect @p regeneration 10 255', player, world, true, false);
- }
- */
- events.onPlayerInteractBlock(function(event as crafttweaker.event.PlayerInteractBlockEvent){
- if(event.block.id == <minecraft:bed>) {
- Commands.call('say I Feel Rested', player, world, true, false);
- Commands.call('effect @p regeneration 10 255', player, world, true, false);
- }});
Advertisement
Add Comment
Please, Sign In to add comment