Luis_ST
Members-
Posts
5704 -
Joined
-
Last visited
-
Days Won
72
Everything posted by Luis_ST
-
use NetworkHooks#openGui look how minecraft create container, but basically you need the container and a screen tutorials are not the best solution to learn something, read the forge docs and look here in the forum, then try to create a container, if you have problems creating it you can still ask
-
First of all, this is only possible on servers on which your mod is running and yes you have to send a packet, take a look at the forge doc (networking) if you've read the doc here is a practical example
-
I created a custom command with custom argument. The command works but when I execute the part with my argument I get the following CommandException: [09:50:51] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] Expected whitespace to end one argument, but found trailing data [09:50:51] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] ...k set Dev bedwars:server_admin<--[HERE] what exactly does this error mean? this is my command class this is my command argument class
-
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
post the log -
How to choose Overworld category (Ore generation)
Luis_ST replied to kicek_kic's topic in Modder Support
check if it's not the nether and the end -
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
your code looks good only that your item class does not contain a constructor, and your item that you register creates a normal item and not your "ender_staff" item -
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
"Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here." Edit (after reading the post of @Soft-fur dragon: if you want to start with the moding read the forge doc -
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
do you know java? Expanding a class is one of the basics look here for a example: https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/src/main/java/net/luis/cave/common/item/FungusSoup.java -
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
if the class posted above is your complete class, it is clear that it is not working your class has to expand the item class in this class is the method that you have to overwrite (Item#addInformation) And Please follow Java naming conventions. -
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
can you post the complet class would be helpful -
this is not a forge mod
-
[SOLVED] I need help at making a tooltip for 1.16.5
Luis_ST replied to Geilomaticer's topic in Modder Support
is this complete code of your item class? if so, then an important part is missing -
[1.16.5] Help with custom Network Message / move items in a container
Luis_ST replied to Luis_ST's topic in Modder Support
ah okay i found the method that does it for me thanks -
I am currently working on a mod that enables the game mode Bedwars. now i want to improve my villager shop system, which currently consists of several villagers (with custom trades). I would now like to put this in one villager. for this I have created a custom container which should act as a shop. Items are placed in this container when it is opened. and the player can then switch back and forth in various tabs by clicking on items. And this is exactly where the problem is, I know that if I move items in a container, I have to synchronize them with the server. I do this with a SimpleChannel and a custom message. when I test the whole thing it doesn't work / it is like before without the synchronization, the items are not placed correctly in the slots because when I click into the inventory it resets to the default this is the container class this the message class and this a helper class which i use to set the items in the inventory so what's wrong? - thanks for replies
-
new BlockItemUseContext.
-
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
- 1 reply
-
- 1
-
I'm not sure, but I think you can prevent/change it with the RenderGameOverlayEvent
-
[1.16.5] Changing Properties of Vanilla Items
Luis_ST replied to notdeadbro's topic in Modder Support
No, because with an event you can only change the damage currently caused but you could also change this with the RenderToolTipEvent if you don't want to do this, it would be better to overwrite the item (register it with the vanilla name and the mod id) -
[1.16.5] Changing Properties of Vanilla Items
Luis_ST replied to notdeadbro's topic in Modder Support
the reflection would be an idea, but it would be easier to use an event and check whether the attacker is using a diamond sword tip: use the LivingDamageEvent you get the attacker from the DamageSource -
item in hotbar checker (idk how to phrase it)
Luis_ST replied to vanilla______'s topic in Modder Support
I think you should check the slots one by one. an example would be a for-loop (which checks the first 9 slots for obsidian 0-8 that would be the hotbar slots). note: if you want to change something in the inventory you cannot use Minecraft#getInstance#player because you get a client player here -
[solved][1.16.5]How to make arrow faster but not incrase its damage?
Luis_ST replied to tmvkrpxl0's topic in Modder Support
I think that's not possible because the damage from the arrow depends on the arrow velocity that mean if you increase the speed of the arrow, the damage is also increased Edit: check out the method onEntityHit in the AbstractArrowEntity class for more information -
[1.16.5] Custom capability has weird / wrong values
Luis_ST replied to Luis_ST's topic in Modder Support
I need the values in the following events WorldTick, PlayerTick, BlockBreakEvent, PlayerRespawnEvent and PlayerCloneEvent. the TickEvents are on the server just like the BlockBreakEvent. what about the other two events (PlayerRespawnEvent, PlayerCloneEvent) are these servers or clients? since if the two were also server events I wouldn't have to sync the values. -
[1.16.5] Custom capability has weird / wrong values
Luis_ST replied to Luis_ST's topic in Modder Support
yes do I have to synchronize the two values between server and client?