This gives the player a diamond sword with the pseudo (fake) NBT tag Invisiblity. scoreboard players tag add holdingSword.scoreboard players tag remove holdingSword.However it is extremely easy to use command blocks to do what you're wanting. The closest we have is item attributes, but those are very different from potion effects. If you do any bit of research about item NBT you'll see that there is no supported tag that gives items potion effects. Hi, im trying to make a map with the use of the In-game NBTedit mod, and I was wondering if anyone knows a way to add potion effects to items and stuff. (#spoiler) = neat! (/rose) = ( full list) News Builds Gameplay Maps Tutorials Redstone Command Blocks FanArt Comment Formatting Use the wiki or community support for questions that can be answered there.Explain your suggestions with a text post.Don't promote illegal or unethical practices.Don’t advertise servers or communities. Edit and manage items: / itemedit (/ ie) which allows to easily and fastly customize items by adding special properties or simple things.Super.Trails & Tales 1.20 FAQ | Login/Stolen Account Problems | Technical Problems On /r/Minecraft Public class GuiLevitationWand extends GuiScreenīutton1 = new GuiButtonExt(0, width / 2 - 100, height / 2 + 100, 100, 20, "Yes") īutton2 = new GuiButtonExt(1, width / 2 + 100, height / 2 + 100, 100, 20, void keyTyped(char typedChar, int ke圜ode) throws IOException Return new ActionResult(EnumActionResult.FAIL, stack) Return new ActionResult(EnumActionResult.SUCCESS, stack) PlayerIn.addPotionEffect(new PotionEffect(Potion.getPotionById(25), 5, 3, true, true)) If(stack.getTagCompound().getBoolean("isMobAffecting") = false) Stack.getTagCompound().setBoolean("isActive", true) Minecraft.getMinecraft().displayGuiScreen(new GuiLevitationWand()) Stack.getTagCompound().setBoolean("isActive", false) Įlse if(stack.getTagCompound().getBoolean("isActive") = false) If(stack.getTagCompound().getBoolean("isActive") = true) If(stack.getTagCompound() != null & playerIn != null) Stack.damageItem(1, ActionResult onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn, EnumHand hand)īlockPos posOfGround = new BlockPos(pos.add(0, -1, 0)) If(stack.getTagCompound().getBoolean("mobAffecting") = true)įor(int i = 0 i = 1 & entityIn1 != playerIn & entityIn1 instanceof EntityLivingBase)ĮntityIn1.addPotionEffect(new PotionEffect(Potion.getPotionById(25), 2, 3, true, false)) ĮntityIn1.addPotionEffect(new PotionEffect(Potion.getPotionById(19), 2, 1, true, false)) If(Minecraft.getMinecraft().thePlayer != null & stack.getTagCompound().getBoolean("isActive") = true)ĮntityLivingBase playerIn = (EntityLivingBase) entityIn Brewing redstone with a potion will cause. (name, void onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) Seen in the potion chart below, adding either redstone dust or glowstone dust to a potion will allow you to further enhance it. Stack.damageItem(1, Minecraft.getMinecraft().thePlayer) If(playerIn.isCreative() = false & Minecraft.getMinecraft().thePlayer != null) If(playerIn.getAdjustedHorizontalFacing() = EnumFacing.NORTH) If(playerIn.getAdjustedHorizontalFacing() = EnumFacing.SOUTH) If(playerIn.getAdjustedHorizontalFacing() = EnumFacing.WEST) Its not something Ive ever done, but other people have done it. stroyBlock(new BlockPos(pos.add(0, 1, 0)), true) I would recommend putting the potion you want traded into your inventory, and then in NBTExplorer copying that items node and pasting it into the correct trade node on a villager entry. If(playerIn.getAdjustedHorizontalFacing() = EnumFacing.EAST) For example, you can now craft an Infused Dagger that inflicts Sunbird's Curse on entities you hit, which would be useful in elytra combat. If (playerIn.canPlayerEdit(pos.offset(facing), facing, stack) & block.getBlockHardness(state, worldIn, pos) < 0 & topBlock.getBlockHardness(state, worldIn, pos) < 0) Portable Beacons Alex's Mobs compatibility (Example datapack) This data pack adds crafting recipes to add potion effects from Alex's Mobs to items from Portable Beacons. IBlockState state = worldIn.getBlockState(pos) īlock block = worldIn.getBlockState(pos).getBlock() īlock topBlock = worldIn.getBlockState(pos.add(0, 1, 0)).getBlock() (name, EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) But I somehow fixed Minecraft freezing (don't know about levitation).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |