player.connection.sendPacket(newSPacketEntityEffect(player.getEntityId(),potioneffect)); } FMLCommonHandler.instance().firePlayerChangedDimensionEvent(player,oldDim,dimension); } 代码示例来源:origin: Darkhax-Minecraft/Bookshelf for(finalPotionEffectpotioneffect:player.getActivePotionEffects()){ 代码示例来...
importorg.bukkit.potion.PotionEffectType;//导入依赖的package包/类CraftMetaPotion(net.minecraft.nbt.NBTTagCompound tag) {super(tag);if(tag.hasKey(POTION_EFFECTS.NBT)) { net.minecraft.nbt.NBTTagList list = tag.getTagList(POTION_EFFECTS.NBT,10);intlength = list.tagCount();if(length >0) { ...
After drinking, an empty Glass Bottle will be left behind and particle effects will appear to indicate that you’re affected by Poison. While the effect is active, your health bar will showyellow-green heartsinstead of red as you take continuous damage. You can check its duration by opening ...
give: This is the main command. @p: This refers to the nearest player or you. You can replace this with your username as well. potion{Potion:“minecraft:night_vision”): This indicates that you want to give the entity above a Potion of Night Vision. 1: This is the amount of the ab...
StatusEffectHUD mod for Minecraft. Displays active potion/player effects and durations on the in-game HUD. Requires bspkrsCore. - bspkrs/StatusEffectHUD
}elseif(potion.getEffects().contains(pLong)) { event.setCancelled(true); giveBackPotion((Player) entity, (short)32766); } } } } 开发者ID:Esaych,项目名称:DDCustomPlugin,代码行数:18,代码来源:LegitWarzone.java 示例6: onProjectileLaunch ...
/give @p minecraft:splash_potion 1 0 {CustomPotionEffects:[{Id:23,Amplifier:0,Duration:1}],Potion:"minecraft:empty"} More info: https://bugs.mojang.com/browse/MC-25866?focusedCommentId=317943&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-317943Issue...
enablePlugins(PluginLoadOrder.STARTUP); } 开发者ID:Techcable,项目名称:DiffUtils,代码行数:79,代码来源:CraftServer_188.java 示例3: CraftServer ▲点赞 2▼ importorg.bukkit.craftbukkit.potion.CraftPotionBrewer;//导入依赖的package包/类publicCraftServer(MinecraftServer console, PlayerList playerList){th...