Everything posted by Luis_ST
-
[1.18.1] Loot modifier when the player has a capability
i would recommend you to use DataGenerator to create the json files automatically, the Forge example also use data generation, take a look at this
-
Eclipse com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string error when testing mod[SOLVED]
did you create a config (*.toml) for your mod? -> if yes show the classes where you create the config did you modify any config file from Forge/other Mods? -> if yes, use \n to create new lines in String values and check if the String values starts and ends with " did you use any dependencies? this is your error:
-
Eclipse com.electronwill.nightconfig.core.io.ParsingException: Invalid newline in string error when testing mod[SOLVED]
show your config classes
-
[1.18.1] Loot modifier when the player has a capability
you can get the Entity (with cast the Player) via LootContext#getParamOrNull and LootContextParams.THIS_ENTITY
-
(1.16.5) Player Capabilities help
no, you need a custom Packet if you want to send data from server to client this is a terrible idea, do not send data each tick, send the data only if it changed
-
[1.18.1] Syncing Fluid Capability in BlockEntity [Solved]
there are two ways: you use a custom Network Packet and sync the data via a SimpleChannel (doc). whenever the data changes override BlockEntity#getUpdateTag and retrun a CompoundTag with the data to sync, override BlockEntity#handleUpdateTag to handle the data sync on client. whenever the data changes you need to call BlockEntity#setChanged choose the way you prefer
-
Display Minecraft Standard Background (Dirt) after the loading of Forge
why?
-
Custom Packets
the message class needs only three static methods: encode with parameters: a message and a FriendlyByteBuf decode with parameters: FriendlyByteBuf, and returns an instance of your message handle with parameters: a message and a Supplier with NetworkEvent.Context when registering your message to a SimpleChannel you must provide these three methods (via a BiConsumer for encode, a Function for decode and a BiConsumer for handle) you can take a look at this doc for about how to register messages
-
1.18.1 I need help making an item that can skip time.
in Item#inventoryTick you have a Level parameter, use a instanceof to check if it's a ServerLevel then you can cast the Level to a ServerLevel
-
problems with org.spongepowered.asm.mixin.transformer crash report
please post the following file: .minecraft/logs/debug.log and use https://gist.github.com/ to upload it
-
Minecraft Game wont load
delete this server config file
-
[1.18.1] Why my bow can't pulling animetion
did you register the ItemProperties for a Bow in FMLClientSetupEvent
-
Client-side event when player joins a singleplayer/multiplayer server
your are on client so there is no Server
-
[Forge 1.18.1] Help with block with transparency and custom shape
you need to set the RenderType of your Block to RenderType.cutout via ItemBlockRenderTypes.setRenderLayer in FMLClientSetupEvent
-
1.18.1 Crash
make sure the Optifine version is compatible with your Forge version, if they match post debug log
-
The import net.minecraftforge.eventbus cannot be resolved
use your IDE to find the correct import
-
How to change Display Names in Tablist?
subscribe PlayerEvent.TabListNameFormat and do there whatever you want
-
1.18.1 Voxel - Blockbench
you can look at the PipeBlock it's basically a CableBlock
-
Forge is not opening when it try to start my server
update Forge to the latest version, also 1.16.5 requires java 8
-
exit code -805306369
post debug log
-
Errors in currently selected datapacks prevented the world from loading. You can either try to load it with only the vanilla...
post full debug log, and please use https://gist.github.com/ to upload the file
-
Run.bat not working
click into the console window, press CTRL + C go back to the Forum and press CTRL + V
-
(1.16.5) Player Capabilities help
Player#getCapability you need a custom Network Packet (Message) and a SimpleChannel, you can read the doc
-
Above and Beyond 1.3 Server won't start
it's a Mod, i think the full name is Applied Energistics
-
1.18.1 I need help making an item that can skip time.
you need to use ServerLevel#getDataStorage then check the check if it's an instance of ServerLevelData, then use ServerLevelData#setGameTime
IPS spam blocked by CleanTalk.