Jump to content

Recommended Posts

Posted
  On 10/27/2020 at 6:04 PM, Crazy_sheep said:

public static DataParameter<Boolean> e;

Expand  

yes now initialize it using ObfuscationReflectionHelper.getPrivateValue

 

  On 10/27/2020 at 6:04 PM, Crazy_sheep said:

public void onspawn(EntityJoinWorldEvent e, World world)

Expand  

you dont need the world here

 

  On 10/27/2020 at 6:04 PM, Crazy_sheep said:

CreeperEntity creeper = (CreeperEntity) e.getEntity();

if (creeper instanceof CreeperEntity)

Expand  

first you do "you are a creeper"

then you ask "are you a creeper "

Posted (edited)
  On 10/27/2020 at 6:27 PM, Crazy_sheep said:

there is a command that is called this

Expand  

can you stop calling it a command

 

the method you need is "get"

it has 2 parameters the first one is the DataParameter the second one is the value you want to set

Edited by loordgek
Posted
  On 10/25/2020 at 8:27 PM, Draco18s said:

Cool.

I did this in a week.

https://draco18s.itch.io/time-slicing-sword

Expand  

That's a really cool idea.

Some tips:

  Reveal hidden contents

 

Posted
  On 10/27/2020 at 6:17 PM, diesieben07 said:
  On 10/27/2020 at 6:15 PM, Crazy_sheep said:

ObfuscationReflectionHelper.getPrivateValue(CreeperEntity.class, null,"field_184714_b");

Expand  

Great you have the value. How about you do something with it instead of just ... ignoring it.

Expand  

 

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

i think i am getting very close to the answer but how do i set it? because i have this

static DataParameter<Boolean> test = ObfuscationReflectionHelper.getPrivateValue(CreeperEntity.class, null,"field_184714_b");
Edited by Crazy_sheep
Posted

TIL DataParameter's are DataManagers....
Seriously, this is just a giant thread of you messing up basic java systems, not listening to people who are trying to help you, and having no idea what you're doing...

 

  • Like 2

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.