Everything posted by Luis_ST
-
[1.16.x] How to register custom signs using Deferred Registries?
post the updated code
-
[1.16.4]Custom Enchantment problem
okay first of all, used the code feature to post code in the forum the part with the enchantment registration is not relevant for the function (event) of the enchantment this will not work because the ItemStack required in the method does not exist when the event is registered, In addition, the event would only be called if the player take damge and something changed in the equipment public static void onWithVoidSpeedEnchantment(LivingEquipmentChangeEvent event, ItemStack itemStack, LivingDamageEvent event2) you don't want to add any damge to the player here
-
[1.16.4]Custom Enchantment problem
show what you created
-
[1.16.4]Custom Enchantment problem
yes
-
[1.16.4]Custom Enchantment problem
I guess your event won't call because you should use a subclass here and not directly the PlayerEvent class For example, the PlayerTick event would be conceivable but this Event is not located in the PlayerEvent class (TickEvent§PlayerTickEvent). Idea: In my opinion, the ticket event is not the best solution. I would use the LivingEquipmentChangeEvent for the speed effect, then check whether the entity is a player and the item enchatend is in your enchantment, and then add an effect to the player that is infinite (you then have to remove it the same way) and because of the damage, check out the Damage Events(LivingDamageEvent and LivingHurtEvent) read the java docs for more information about the events.
-
Custom made block (with a custom model) not showing up at all in game. (1.16.1)
did you check this too?
-
Custom made block (with a custom model) not showing up at all in game. (1.16.1)
First of all, is the method executes which initialize the DeferredRegister? is only the item of the block not available or does the block not exist? (use the setBlock command to check this)
-
Deferred Registers not Wanting to Work in Forge 1.15.2
Internet? if you found this site you will also find one for java just have a look here...
-
[1.16.5] TileEntity don't save data (inventory)
i try that thanks
-
[1.16.5] TileEntity don't save data (inventory)
Update: I'm trying to adapt my TileEntity, I used the CampfireTileEntity as an example because it actually works the same way
-
[1.16.5] TileEntity don't save data (inventory)
I changed it, but the inventory remains empty
-
[1.16.5] TileEntity don't save data (inventory)
okay i'm now checking whether the world is a ServerWorld but this has not fixed the error, if I print the inventory on the console after interacting, every slot is empty this is the updated class
-
[1.16.5] TileEntity don't save data (inventory)
I have created a tileentity which should add items to an ItemStackHandler when you right-click. if after adding the item I check whether the item is present in the ItemStackHandler, It returns false. this is my TE I suspect it is due to the synchronization between client and server, but I'm not sure, because it could be something else does anyone have any idea what I have to change?
-
[1.16.5] help with the official mappings (new mappings)
okay thanks for your help and i think it was a error in my idea, because i re-imported my forge project and now everything works
-
[1.16.5] help with the official mappings (new mappings)
thanks and do i get an answer to this question? is that on purpose or a error in my IDE
-
[1.16.5] help with the official mappings (new mappings)
which command do i have to use because when i use !mcpm i get the old the names
-
[1.16.5] help with the official mappings (new mappings)
okay i'm trying to use the discord bot and why are some classes not readable?
-
[1.16.5] help with the official mappings (new mappings)
I know that the latest version of forge no longer uses the forge but the mojang mappings therefore i cannot find some methods is there a list or something similar where i can find the new name of the method I would find the methods myself, if not most of the classes look like this: here are some methods with their old names VoxelShapes#combineAndSimplify Block#updatePostPlacement Block#allowsMovement does anyone know the new mapping names? and does anyone have any idea why many classes are not readable / look strange?
-
Transparent blocks appearing opaque (1.16.5)
use the FMLClientSetupEvent and not the FMLCommonSetupEvent set all RenderLayer to translucent (not cutout or cutoutMipped)
-
Brewing Recipe not working
used a git client, and created your repo with it, then it contains all the files that are needed
-
Brewing Recipe not working
to find the problem we need more than just the "src" folder short: your repo is incomplete
-
Transparent blocks appearing opaque (1.16.5)
public class ModGlassBlock extends GlassBlock{ public ModGlassBlock(AbstractBlock.Properties p_i48392_1_) { super(p_i48392_1_); } public boolean isOpaqueCube() { return false; } public boolean notSolid() { return true; } } this will not work because Block or GlassBlock does not contain any of these methods and I said add this (notSolid) to the block properties so to the following public static final RegistryObject<Block> BERYLGLASS = BLOCKS.register("beryl_glass", () ->newModGlassBlock(AbstractBlock.Properties.of(Material.LEAVES).strength(0.3F).sound(SoundType.GLASS) .noOcclusion().harvestTool(ToolType.PICKAXE).harvestLevel(1))); Edit: if I see that correctly you are using the latest Forge version (the one with the Mojang mappings), which means notSolid is now called noOcclusion (I'm not 100% sure -> it could also be called differently)
-
Transparent blocks appearing opaque (1.16.5)
I'm not sure what you mean by connecting the texture, but try to add notSolid to the block properties and add a RenderTypeLookup to the block
-
how can i make crops in minecraft 1.16
CropsBlock
-
How do Container GUIS work in 1.16.5
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
IPS spam blocked by CleanTalk.