Differentiation
Members-
Posts
606 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Differentiation
-
[1.12.2] [SOLVED] Way to yield random item or block?
Differentiation replied to Differentiation's topic in Modder Support
Thanks guys! -
[1.12.2] [SOLVED] Way to yield random item or block?
Differentiation replied to Differentiation's topic in Modder Support
But I mean what would be the appropriate registry? How can it include all items and blocks from all the mods that the player has loaded and Minecraft? -
[1.11] Adding a potion effect to a player
Differentiation replied to MSpace-Dev's topic in Modder Support
If this topic was not solved yet: MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance(); List<EntityPlayer> list = Lists.newArrayList(server.getPlayerList().getPlayers()); for (EntityPlayer playerIn : list) //for each player in the player list { playerIn.addPotionEffect(new PotionEffect(MobEffects /* don't get effect from ID, IDs can change */... effect, int... duration, int... amplifier, boolean... particles, boolean... isAmbient)); } Hope I helped -
[1.10.2] Allow Command on Server side only
Differentiation replied to DarkProd02's topic in Modder Support
This is executed server-side, so you are technically already doing that... -
Hey! In my Custom Capability class I have player.setRegenerating(500, 10, 1.0F); on PlayerCloneEvent. However, I notice that whenever I run /kill, the ticks go by faster in PlayerTickEvent every time I respawn again. When I log out, the Event is called on time (20 ticks per second). Is there a problem with my code or what? Any suggestions are welcome. Thank you!
-
Hey! So I have multiple classes with unique code required for the PlayerTickEvent. Is it harmful to Subscribe to the same event multiple times throughout your packages? For instance: In class 1: @SubscribeEvent public void onPlayerTicking(PlayerTickEvent event) { do stuff... } In class 2: @SubscribeEvent public void onTickingPlayer(PlayerTickEvent event) { do other stuff... } Will this cause any conflicts or is it perfectly fine? Thanks!
-
Get UUID from name for offline player
Differentiation replied to DaComputerNerd's topic in Modder Support
Maybe the OP is talking about player's that are not present on the world or players that are not really logged on? -
[1.12.2] Make a player unable to jump?
Differentiation replied to Differentiation's topic in Modder Support
But that shows the effect icons when I interact with my inventory... I mean, I know how to rid the particles of the effect, but is there a way to rid the icon in the inventory so that the player will have no idea they have a potion effect on them? -
Hey! I wanted to be able to make the player unable to jump, is there a way to do this? Is it just canceling LivingJumpEvent? And apart from that, what if I wanted to make the player unable to move (W, A, S, D)? Any suggestions are welcome. Thank you!
-
ItemPickupEvent::getOriginalEntity#getItem()#getItem(); isn't working when compared to the correct item picked up I'll try ItemPickupEvent::getStack();
-
the latest for 1.12 (1.12.2 - 14.23.1.2589) and pickedUp is in fact deprecated. I'll try using EntityItemPickupEvent instead and see if it works.
-
Hey, In 1.10.2 for ItemPickupEvent, I would get the item picked up via pickedUp. How would you do this in 1.12.2? pickedUp is deprecated. Please help. Thanks!
-
If you solved this problem, please insert a [SOLVED] in the title so that people with similar problem may be able to fix it too
-
[1.12.2] [SOLVED] Getting the ItemStack stackSize?
Differentiation replied to Differentiation's topic in Modder Support
Thanks guys! -
Hey! I just updated my mod to 1.12.2 and as I was updating and renaming methods and all the code, I happened to have a problem with one specific function and that would be getting the stackSize of an ItemStack. In 1.10.2 it was pretty simple: ItemStack::stackSize. Please help. Thank you!
-
java (tm) se binary has stopped working
Differentiation replied to walas2003's topic in Support & Bug Reports
1. Make sure you have the Recommended version of Forge. Question: Is the screen black when it's done loading? -
How do I make 32 X 32 texture like faithful
Differentiation replied to TheRPGAdventurer's topic in Modder Support
No. They actually put in the time to make every texture pixel by pixel. I have tried so many ways to convert to 32x32 with a click but I couldn't as it would always come out blurry no matter what I do. I have adopted the 32x32 Faithful and I have now become a master at texturing that style! That's why I can code and texture for my mod -
How do I make 32 X 32 texture like faithful
Differentiation replied to TheRPGAdventurer's topic in Modder Support
For my mod I just make my textures Faithful 32x32 because 16x16 just looks non-HD and overall bad quality -
Use Forge's SimpleImpl to create custom packets.