Everything posted by Luis_ST
-
[1.17.1] How the POTION_ICONS event was renamed
do you mean GuiScreenEvent.PotionShiftEvent?
-
1.16.5 First time join event help
use PlayerEntity#getCapability use CapabilityItemHandler#ITEM_HANDLER_CAPABILITY and null as parameter then use orElseThrow to get an IItemHandler use a for loop to loop through the slot san check if they contains your item if it dosen't contain your item add it to the IItemHandler
-
[1.17.1] Setting a tool for drops with block properties doesn't work.
this questions has already be answered in this thread
-
Biome not working (1.16.5)
did you call the register method in deferredregister in your Mod class constructor? did you tried setupBiome without event.enqueueWork? json biomes are registered via the RegistryKey (this will done automatically and: https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html
-
Help with OpenGL depth (rendering players).
first of all this is cheating, and we don't support mods that allows the Player to cheat second which version did you use because GlStateManager.disableDepth does not exist in new versions
-
How to use lightLevel() Forge 1.17.1
for an example look into the BlockBehaviour.Properties class, there is a default implementation with return 0
-
[Solved] [1.16.5] Unknown biome id emitted by layers: 174
post full log please, but i think your Biome is not registered with an ID, because the vanilla Biome IDs end with 173 so 174 is a modded biome Note: if you using the vanilla biome layer system it can lead problems if two mods are register a biome with the same id
-
[1.16.5] Possible to modify tags at runtime?
but tags are file based, or can we edit them on runtime? iirc the file tag is final
-
1.17.1 - ToolAction
harvestTool is now set in json which i had explained in this thread harvestLevel is also set via json but it's a bit more complicated, you need to create a custom block tag and add your block to this tag if you create an ItemTier wich can mine the block you should return the tag in the ItemTier (take look at the ForgeTier and at the TierSortingRegistry class), for tags look into the vanilla Tags classes
-
Macbook Forge Crash
use pastebin, gist.github or upload the file here
-
1.16.5 First time join event help
this is the forge Community Wiki: https://forge.gemwire.uk/wiki/Main_Page and this is the official doc: https://mcforge.readthedocs.io/en/latest/
-
1.16.5 First time join event help
https://mcforge.readthedocs.io/en/latest/concepts/sides/ https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ should be clear if you know basic java (superclass methods form java.lang.Object and OOP)
-
[1.16.5] Possible to modify tags at runtime?
write into a file at runtime which is generate by vanilla is a good idea?
-
What is the counterpart for .hardnessAndResistance ()?
its strength, you can use the forge bot on discord to convert the mapping names (mcp -> moj & moj -> mcp)
-
Macbook Forge Crash
the full log and not as a screenshot please
-
[1.16.5] Possible to modify tags at runtime?
use a config, note that you can not read/write a block directly from/into the config, you should use the registry name
-
1.16.5 First time join event help
first of all, inventory modifications are server side, so test if the Player you get from the event is a ServerPlayerEntity next player.inventory is client side you should use the Capability IItemHandler (CapabilityItemHandler#ITEM_HANDLER_CAPABILITY) in addition you can't check if the player inventory contains an ItemStack because ItemStack doesn't overwrite the equals method, you only can do this with items (then you can use ==)
-
1.16.5 First time join event help
show your updated code and what exactly now your problem
-
1.17.1 - ToolAction
Show what you tried
-
1.16.5 First time join event help
what do you want to achieve do you know basic java?
-
[Solved] Config Files [1.8.9]
create your own thread and 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
[1.16.5] Animated block with several models
should normally work but you can try to stitch the texture in TextureStitchEvent.Pre
-
[1.16.5] Animated block with several models
where is your texture located
-
[1.16.5] quickMoveStack Help
the first parameter (ItemStack) is the item which is move the second parameter (int) is the min slot id where the item can move to the third parameter (int) is the max slot is where the item can move to and no idea what the boolean parameter does
-
[1.16.5] How can I smooth the YAW set animation?
PlayerEntity the for loop is an infinite loop, beacuse an Float can be 0.04578F and an Integer can only be 0 so 0.04578F != 0 is always true use > or >= or < or <= for the condition
IPS spam blocked by CleanTalk.