Everything posted by poopoodice
-
[SOLVED] ItemModelProperties override not working when iterating
Can you provide a repo?
-
[1.16.1]how to use player.playsound()?
He's asking which playSound(...) in which world (client/server) you are using, there are multiple of them.
-
Help with Registering Custom Blocks (that extends Blocks) using Deferred Registries
Minecraft.getInstance().player.sendChatMessage("Block Placed with CHARGE: " + (Integer)blockState.get(CHARGE)); This will crash on server https://mcforge.readthedocs.io/en/latest/concepts/sides/, use the player provided instead. You need to show more of your code
-
get leather armor [dyed] color? [latest version]
Check IDyeableArmorItem
-
[1.16.3] ArrayIndexOutOfBounds on Packet
For me your link is not working.
-
(1.16.1).setLightLevel and .setRequiresTool gives error Cannot resolve method 'setLightLevel' in 'Properties'
Have you even try to look at vanilla or do some research?
-
[1.15.2] Max Health Attribute Issue
You are applying a new modifier every tick, you should create a static final modifier, then apply/remove it to the player if the player has the modifier.
-
[1.15.2] Max Health Attribute Issue
show the updated code
-
[1.15.2] Max Health Attribute Issue
You should probably apply modifiers on attributes instead of directly modify their base values.. but I'm not sure if there's anything to do with this.
-
I have a friend who wants to make a mod that places blocks beneath your feet
Mod id can not be capitalized. LivingJumpEvent is triggered whenever a living entity jump, and that includes livings like sheep, chickens, zombies..etc. the default bus of annotation @Mod.EventBusSubscriber is forge already, and it should not be done only on client side.
-
[Solved][1.15.2] Button in GUI to teleport player into other dimension
That's actually a false as public void encode(DataTransferInterfaceMessage msg, PacketBuffer buffer) { buffer.writeVarIntArray(new int[]{territory, xCoord, yCoord, zCoord}); } public DataTransferInterfaceMessage decode(PacketBuffer buffer) { int[] array = buffer.readVarIntArray(); if(array.length!=4) return new DataTransferInterfaceMessage(0,0,80,0); return new DataTransferInterfaceMessage(array[0], array[1], array[2], array[3]); } they does not reference any data outside the method, hence they can be static These data should be gained from the msg
-
[1.16.4] Storing a BlockState as NBT in a TileEntity
NBTUtil.writeBlockState()
-
[1.16.3] Looting table dropping different items at the same time
you can create multiple pools, for every item you want to drop
-
[Solved][1.15.2] Button in GUI to teleport player into other dimension
You need to send a packet to the server and do the teleport there.
-
superhero help plz
1.7.10 is no longer supported
-
Generate items based on customizable json
Good to know, thanks for the reply
-
Generate items based on customizable json
Hello, as title, is it possible to generate items based on json created by users, and is it a good idea to do it? Thanks.
-
[1.16.3] Test is item is on certain block
These are not supposed to exist in your block class, at least not how like how you use it here. You forgot to add the new state to the state container.
-
1.16.3 Custom Effect
I don't think you can as potion effects handling are done in many places, unless you want to simulate all of them. Override onItemUseFinish and return the stack you want to give to the player, check SoupItem or PotionItem
-
[1.16] Custom Commands
in 1.16 there's an event called RegisterCommandEvent for you to register all your commands. To create (further processes) a command you can see how vanilla does it, there are quite a lot of them.
-
[1.16.3]My mod runs in IntelliJ IDE but when I export it the mod doesn't work.
He's pretty much telling you to learn from this one instead of the one you were using.
-
Missing ModLoader in file (main)
You're right it needs to be above it, apparently I have them mixed up
-
Missing ModLoader in file (main)
Licence can't be located above modid
-
Encountered an Error during the load_regestries event
Show your code.
-
What am I doing wrong
The github link isn't working (at least for me), and it will help a lot if you can also post the crash log.
IPS spam blocked by CleanTalk.