Jump to content

[1.19.2] Endermans pickup block event ?


perromercenary00

Recommended Posts

Good nights 
i fond the json whit the list of blocks enderman picksup and add one of the mines 

/data/minecraft/tags/blocks/enderman_holdable.json

	{
    "replace": false,
  "values": [
    "mercblk:manhole_panel"
  ]
}
	

and its works but two things i need 

2023-03-15-21-17-21.png

 

they hold the manhole cover whit the same rotations as a block of dirt 

is posible to set a custome rotation more adequate to this block like in the display section of the json model 

like 

"thirdperson_enderman": {

"rotation": [0, 90, 0],

"translation": [3.25, -1.75, -3.5],

"scale": [0.5, 0.5, 0.5]

},

 



	"display": {
	"thirdperson_righthand": {
	"rotation": [0, 90, 0],
	"translation": [3.25, -1.75, -3.5],
	"scale": [0.5, 0.5, 0.5]
	},
	"thirdperson_lefthand": {
	"rotation": [0, 90, 0],
	"translation": [3.5, -2, -3.5],
	"scale": [0.5, 0.5, 0.5]
	},
	"firstperson_righthand": {
	"rotation": [0, 90, 0],
	"translation": [1.5, 2, 0],
	"scale": [0.5, 0.5, 0.5]
	},
	"firstperson_lefthand": {
	"rotation": [0, 90, 0],
	"translation": [1.5, 2, 0],
	"scale": [0.5, 0.5, 0.5]
	},
	"ground": {
	"translation": [0, 1.25, 5.5],
	"scale": [0.75, 0.75, 0.75]
	},
	"gui": {
	"rotation": [0, 11.25, -45],
	"translation": [1, 0, 0],
	"scale": [0.75, 0.75, 0.75]
	},
	"head": {
	"translation": [0, 0.25, -1]
	},
	"fixed": {
	"rotation": [0, 0, 45],
	"translation": [0, 0, 5.5]
	}
	

 

#########################

and the main thing is 
i made this custome manhole block the cover can be detached from the block and if you break the block it will drops the cover first 

manhole-edit-edit.gif

i want the ender to stole only the cover and let the gravel slab behind 
soo it i have two posibilities 


if the block has some

onEndermansPick(Level level, BlockPos pos, Entity ender){} function 

or an onEndermanPicksBlock event  

any if those is good 
 

thanks fro your time 



 

 

 

 

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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