
Sterling00
Members-
Content Count
9 -
Joined
-
Last visited
-
Days Won
1
Sterling00 last won the day on January 6
Sterling00 had the most liked content!
Community Reputation
4 NeutralAbout Sterling00
-
Rank
Tree Puncher
Converted
-
Gender
Male
-
Location
Germany
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Can you place vanilla blocks? And are all the mods also loaded on the server?
-
It is only returning the attributes. To set your own attributes change the "MobEntity.setCustomAttributes().create()" to YourEntityClass.func_234188_eI_().create(). I would recommend to rename "func_234188_eI_" to "setCustomAttributes" or something similar though
-
Also you should propably rename the "MobEntity" file to something like gsCowEntity to differ from the MobEntity class by Minecraft.
-
I think this is caused by the fact that you did not create the cows attributes. In your main class cunstructor do: // Register the setup method for modloading bus.addListener(this::setup); and add the method: private void setup (final FMLCommonSetupEvent event) { event.enqueueWork(() -> { GlobalEntityTypeAttributes.put(ModEntityTypes.GS_COW.get(), MobEntity.setCustomAttributes().create() } }
-
I found it! For everyone, its this little function: @Override public boolean func_241845_aY() { return this.isAlive(); } However the name of it depends on the mapping, doesnt it? Just search for a function that does the same thing in the Shulker entity class then. Or look at entity#canCollide
-
Please clarify, what exactly is not working?
-
Sorry I should have mentioned this. I already tried it and it doesent work
-
As part of a bigger mod that adds alot of new creatures, I wanted to add an entity that behaves just like any other entity except that the Player can stand on top of it. Pretty similar to the Shulker entity. I already scanned the whole Shulker entity code to find what is causing the Player to be able to walk, jump and sneak on them but I cannot seem to find it. What am I missing? Or are there other ideas to add this behavior? I already tried setting the players Y motion to 0 when colliding with the entity. As well as boosting the player up when there is the entity beneath. But nothing makes it feel like standing on a block. Any help is much appreciated