Luis_ST
Members-
Posts
5704 -
Joined
-
Last visited
-
Days Won
72
Everything posted by Luis_ST
-
How could I get the player to behave in lava as they would in water?
Luis_ST replied to Ninjaguy169's topic in Modder Support
I'm not familiar with the new FluidApi added by Forge. But you could try to set the canSwim value of the FluidType of Lava (ForgeMod.LAVA_TYPE) via Reflection inside FMLCommonSetupEvent in #enqueueWork to true. -
I'm not a expert at Screens and Menus but here a few hints what you have to do or where you can look for examples. Due to the fact that a shop should be handled server-side, I recommend you to use a menu because you can handle button clicks easier and you can make sure no data has been modified without permission from a client. Depending on how many trades you want to have in your shop, you will need a scroll bar to properly handle that massive number of trades. You can take a look at the StonecutterScreen or the MerchantScreen for an example of a scroll bar. The other stuff is just a bit rendering of a texture (you can use all vanilla Screens for an example), add a few Button and handle the Button click in your Menu.
-
There is no helpful information for most things, in the mosts cases there is a vanilla example or something like that where you can take a look at. Then try and hopeyou get the things to work.
-
[1.18.1] Errors in current datapack prevented the world from loading
Luis_ST replied to The__YG's topic in Modder Support
It was just a copy paste, i forgot to modify it 😅. The paste does not exists. It should be directly in your game directory. -
[Forge 1.19] How to make my entities spawn naturally
Luis_ST replied to Loris Accordino's topic in Modder Support
In 1.19 this is done via Biome Modifiers, you can take a look at the buildin Biome Modifier Types (https://forge.gemwire.uk/wiki/Biome_Modifiers#Add_Spawns). A few additional things, do never use @OnlyIn it's vanilla only SpawnPlacements should be done in FMLCommonSetupEvent EntityRenderers are registered in EntityRenderersEvent.RegisterRenderers -
Keep this Forums in English please.
-
[1.18.2] How to store some variables to vanilla items
Luis_ST replied to Vat1n's topic in Modder Support
You can not store data like this in your EventHandler class, if you want to store data it's recommended to use a Capability. see: https://forge.gemwire.uk/wiki/Capabilities https://forge.gemwire.uk/wiki/Capabilities/Attaching -
Delete this config file if you have not modified it.
-
Remove Rubidium.
-
Please post debug.log from the logs folder.
-
(1.19.2) Translating classes/methods from 1.16.5
Luis_ST replied to ElTotisPro50's topic in Modder Support
In general you can use Forge-Bot on the Forge discord server. But if you want to updated a project this would be the easiest way to do it. -
Global Loot Modifier Not Working as Intended
Luis_ST replied to TheElementGuy's topic in Modder Support
Did you tried with DeferredRegister? -
[Solved] Material.STONE Apparently Doesn't Exist...
Luis_ST replied to Jimmeh's topic in Modder Support
Please post the full class -
How to do something while an specific item is being use
Luis_ST replied to PAstBand's topic in Modder Support
The default value is 0, you need to override the method and return a value which is larger than 0. Note this is the max time (in ticks) a Entity can use this Item. -
[1.18.1] Errors in current datapack prevented the world from loading
Luis_ST replied to The__YG's topic in Modder Support
Are you sure it is the full debug.log from the logs folder, since the log does not contains any indicate of your problem. If this is the full debug.log please post launcher_log.txt as well. -
I don't now how to instal forge 1.18.2-40.1.68 in multicraft
Luis_ST replied to alejorivero1's topic in Support & Bug Reports
Forge only supports the official launcher, if you want to play Forge on a third party launcher talk to them. -
Please show the code you are using to register your Block and the MenuType.
-
How to do something while an specific item is being use
Luis_ST replied to PAstBand's topic in Modder Support
What exactly does not work? Do you want to print the message once? Please post the full Item class. -
Make sure you pack.mcmeta is valid. Please post a git repo of your Mod.
-
Please post debug.log.
-
[1.18.2]Access specific blockstate of block.
Luis_ST replied to AwesomeStickguy's topic in Modder Support
If you want to get the BlockState value: BlockState#getValue with the BlockStateProperty you want to get. If you want to set the BlockState value: Block#defaultBlockState and then BlockState#setValue with the BlockStateProperty you want to set and the value you want to set the property to. In you case the BlockStateProperty would be BeehiveBlock.HONEY_LEVEL. -
Global Loot Modifier Not Working as Intended
Luis_ST replied to TheElementGuy's topic in Modder Support
It is highly recommended to use DeferredRegister for all registry entries. Is your bolt_from_zombified_piglins a json file? -
How to do something while an specific item is being use
Luis_ST replied to PAstBand's topic in Modder Support
Item#onUsingTick is only called if the Item is in use, therefore you need to call LivingEntity#startUsingItem in Item#use. and the return value of Item#getUseDuration is larger than 0. In addition teleport the Player is a server side operation and you should use Entity#teleportToWithTicket.