Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to place block "y" axis +1 in the "Right Click" json #15

Open
Zergmazter opened this issue Jun 18, 2019 · 0 comments
Open

Unable to place block "y" axis +1 in the "Right Click" json #15

Zergmazter opened this issue Jun 18, 2019 · 0 comments

Comments

@Zergmazter
Copy link

Zergmazter commented Jun 18, 2019

[
	{
    "helditem": "contenttweaker:tongs",
    "block": "contenttweaker:hot_iron_ingot",
    "setblock": {"block": "minecraft:air"},
    "sethelditem": {"item": "contenttweaker:tongs2"}
	},
	{
    "helditem": "contenttweaker:tongs2",
    "block": "minecraft:anvil",
    "setblock": {"block": "contenttweaker:hot_iron_ingot"},
    "sethelditem": {"item": "contenttweaker:tongs"}
	}
]

Using the "Right Click" json I'm trying to make my custom tongs pick up an item and able to place the item picked up elsewhere. It's all working so far, but there is a minor inconvenience happening whenever I place the item(Block). Which ever block I place the item(Block) on whether specified or not specified, the block being targeted (being looked at) gets replaced by my placed block.

Is there a way to specify my block to just spawn "y" axis +1, so that it spawns on top of the block I'm looking at whenever I right click? I went through the wiki and tried many things, but nothing worked.

My only fix currently is an extensive one in which I would turn my "tongs2" into a block, then use the "placeEvents" json to changed the placed block into the block of my choice, according to the tag applied to the "tongs2" block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant