Everything posted by SomePerson
-
Block(BlockBehaviour.Properties.of(Material.BLOCK)??
I did not see this: public class Block extends BlockBehaviour So I did not know how I could use Properties.copy() which actually requires a BlockBehaviour object. Sorry for that.
-
How to Get the Entity the Player is Looking At 1.19.3
Even better
-
How can I render a model exported from blockbench as a .java file
Wow great support.
-
How can I render a model exported from blockbench as a .java file
Also the player looking in different directions has no effect.
-
How can I render a model exported from blockbench as a .java file
Update: at around 0 0 0 it draws the model but it does not move.
-
How to Get the Entity the Player is Looking At 1.19.3
There is a function in LivingEntity called hasLineOfSight where you can specify another Entity
-
How can I render a model exported from blockbench as a .java file
Another question: considering my current way of doing this is stupid, how could I render a different model for the player, maybe even with geckolib?
-
Block(BlockBehaviour.Properties.of(Material.BLOCK)??
public static final Block SLIME_BLOCK = register("slime_block", new SlimeBlock(BlockBehaviour.Properties.of().mapColor(MapColor.GRASS).friction(0.8F).sound(SoundType.SLIME_BLOCK).noOcclusion())); That was in Blocks.java. Just do that.
-
Block(BlockBehaviour.Properties.of(Material.BLOCK)??
import net.minecraft.world.level.material.Material;
-
Block(BlockBehaviour.Properties.of(Material.BLOCK)??
You are not importing the Material class. Is that on purpose?
-
How can I render a model exported from blockbench as a .java file
if(transform.isActive()){ event.setCanceled(true); LayerDefinition def = Transformed.createBodyLayer(); Transformed<Player> model = new Transformed<>(def.bakeRoot()); PoseStack ps = new PoseStack(); ps.translate(player.getX(),player.getY(),player.getZ()); //ps.pushTransformation(new Transformation(null).applyOrigin(player.getPosition(1).toVector3f())); model.renderToBuffer(ps,Minecraft.getInstance().renderBuffers().bufferSource().getBuffer(RenderType.entitySolid(Transformed.LAYER_LOCATION.getModel())), 0, 0, 1, 1, 1, 1); } I have this but it does not work and its probably completely wrong but i could not find anything better (It is in the RenderPlayerEvent.Pre event)
IPS spam blocked by CleanTalk.