Everything posted by poopoodice
-
Gui
1. Minecraft.getInstance().displayScreen() 2. I don't think there are such thing, for most of the people a working web browser and this nice as forum is enough.
-
Custom Sword Crafting
Do you mean does not? You can use spaces to represent 'empty', check vanilla for examples.
-
Game crashed after Entity's spawn
Have you register data field_234232_bz?
-
Play sound and particle 1.16.2
Have you try to look around the forum or see how vanilla does it? Use IWorldWriter/World (can't remember which) .playSound() and .add/spawnParticle().
-
Item consume after use?
ItemStack.shrink() This can be found easily in other places like food, bow, etc... please have a look at them.
-
[1.16.1] Handling Two Events Together
You can save the magnification value on the stack on serverside, and change the fov according to the magnification stored on the stack in the fov update event.
-
[1.16.1] I need help with getting my item to have colored layers.
Is the event triggered?
-
1.15.2 Texture Not Showing Up
Reload the resources in game.
-
[1.16.1] Pass in Voxel Shape
Each time you call getAgeProperty() you creates a new property, which I think it makes the property you added to the state container and the property you use in the getShape() is different... but I'm not sure about this (There's already a property in CropsBlock, you should probably use it instead of create your own one). Also the reason I recommended you anonymous class is because I thought you don't want to create a class just for custom shapes, but apparently I misread your question : (
-
[SOLVED ][1.15.1] Custom Crossbow keeps charging
Override isCrossbow in your item class.
-
Item DeferredRegister Issue
https://mcforge.readthedocs.io/en/latest/concepts/registries/#deferredregister You registered them in the wrong way.
-
[1.16] Make a blockstate for a block
BlockState.get(property)
-
Effect doing nothing
Sorry I mean "effect". Can you show us how you register it? Also
-
Effect doing nothing
How do you apply the effect? Have you register the effect type?
-
[1.16.1] Pass in Voxel Shape
You can use anonymous class. https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html
-
[SOLVED][1.16.2] How to place a block using an Item
You can’t store the variables that changes while the game is running like that, use tags. Also I don’t think the third parameter of setBlockState can be 0.
-
[1.16] Make a blockstate for a block
Remember to add to state to the state container.
-
(SOLVED) Upgrading from 1.14 to 1.16
minecraft 'net.minecraftforge:forge:...' under dependencies in build.gradle and if you are using intellij, there should be a gradle panel. Select it and there should be a refresh button, or when you made changes to the build.gradle file a small window will pop up and asks you if you want to reimport the gradle project.
-
Identify block next to player 1.16
The event is called LivingJumpEvent, it is triggered whenever a LivingEntity jumps. You can use instanceof syntax to check if the entity is player.
-
Identify block next to player 1.16
it returns the new position. Through World.getBlockState(pos) you can get the blockstate, and then get the block from it.
-
1.16.2 ItemRightClick error
Yes, it needs to return one of the ActionResult type
-
Identify block next to player 1.16
BlockPos.offset() or pos.up/down/n/s/w/e
-
[1.16.2] My ModSnowball does not render with texture
I don't think it is necessary, you can just ignore it as it doesn't hurt.
-
1.16.2 Forge Error?
create is a static method which provides an instance of it, get rid of that "new".
-
How to check how long a player has been falling for?
fallDistance in Entity should work
IPS spam blocked by CleanTalk.