Everything posted by Luis_ST
-
[1.18.X] Create Custom Gui
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.
-
(1.19.2) RenderPlayerEvent
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
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
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
-
[1.18.x] Create A custom Food
Keep this Forums in English please.
-
[1.18.2] How to store some variables to vanilla items
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
-
1.19.1 wont launch
Delete this config file if you have not modified it.
-
Error with forge
Remove Rubidium.
-
Error with forge
Please post debug.log from the logs folder.
-
when a player logs on to the server, this error is displayed in the console. What it means and how to remove it
Talk to the author of "apoli", it's an issue in it's Mod.
-
(1.19.2) Translating classes/methods from 1.16.5
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
Did you tried with DeferredRegister?
-
[Solved] Material.STONE Apparently Doesn't Exist...
Please post the full class
-
How to do something while an specific item is being use
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
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
Forge only supports the official launcher, if you want to play Forge on a third party launcher talk to them.
-
Custom Workbench For Custom Items
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
What exactly does not work? Do you want to print the message once? Please post the full Item class.
-
runClient issue
Make sure you pack.mcmeta is valid. Please post a git repo of your Mod.
-
runClient issue
Please post debug.log.
-
[1.18.2]Access specific blockstate of block.
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.
-
runClient task fail
- Global Loot Modifier Not Working as Intended
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
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.- [1.18.1] Errors in current datapack prevented the world from loading
Please post debug.log. - Global Loot Modifier Not Working as Intended
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.