#How to make Iron ore drop 3d iron ore block instead of 2d raw iron item
1 messages · Page 1 of 1 (latest)
Yes
How exactly would I be able to do this? I’m trying to make the ore block drop instead of the raw iron like it used to back then
Should’ve specified I’m trying to mainly make this happen on survival mode
Do you want to do this by script, by commands?
I’m really sorry I should have alllsoo mentioned that I’ve never done something like this before
But I’m guessing script?
The easiest way (outside of Silk Touch enchant) is to change the block loot to drop the new item instead (using a lower, possibly negative, priority where applicable).
This can also be achieved via hooking into the Block Break event as the trigger as well, but that option is more computationally expensive, because it is still looking up the old loot table, whereas just changing the Loot Tables directly is much better for the processing.
And how and where can that be achieved?
That part I'm still working on learning in the current version of Minecraft.
-# it was much easier back in 1.7.10
But I'd start with using the most recent format version.
-# I'm presuming you're using Bridge v2 IDE.
Animation Controllers: 1.10.0 ⭐
Animations: 1.10.0 ⭐
Attachable: 1.10.0 ⭐
Blocks Catalog: 1.20.40 ⭐
Client Entity: 1.10.0 ⭐
Fog Settings: 1.16.100 ⭐
Geometry: 1.16.0
Particle Effect: 1.10.0 ⭐
Render Controllers: 1.10.0 ⭐
Sound Definitions: 1.20.20 ⭐
Entity: 1.21.60
Item: 1.21.30 ⭐
Recipe: 1.21.60
Spawn Rules: 1.17.0 ⭐
Trade Table: 1.18.10
Beyond that, you will want to look into how to create custom blocks (also available on that same site), and then you might want to look up the Molang documentation on the Microsoft Minecraft website.
Should’ve also mentioned I also wanted to do this for 1.18 and not exactly the recent version of Bedrock my bad…..
Would it be slightly simpler to do by commands or would it be the same? I’m really new to anything like this
Yes
I think commands are different for this in 1.18 and you’ll have to find an old tutorial but basically save a block of raw iron in a structure block then do /execute at @e[name=“raw iron”] run structure load nameofstructureyoumadeabove ~~~
And then in a chain command block above just kill all raw iron
the name= part might be slightly different you have to make it the name of the raw iron item when it’s dropped and i forget if that’s capitalized
The execute command might’ve worked differently back then
Closest I got to it doing something or at least it not giving my Syntax Errors was something like
/execute @e [name="Raw_Iron"] ~~~ structure load mystructure:RawErn 44 62 71 0_Degrees none false true
This which I know prob won’t make sense but at that point I was just messing around with stuff
Gave me a no targets matched selector message instead
Yea you need to find a old tutorial on how to use execute because they updated it a lot
Also why are you loading the structure at specific coordinates? Idk how to specify the execute is happening at the entity in an older version but don’t think that’s necessary
Oh idk I was just trying anything atp
Would I have to type something specific to make it spawn anywhere it’s used?
Also I’ll continue to try finding a tutorial for 1.18 bedrock cuz I haven’t had much luck yet lol
Yeah I’m not sure if I can find a tutorial that exactly explains what I’d need for the the whole [name=] part unfortunately…..
The name is either “Raw Iron” or “raw iron” I believe
If you can specify something happens at the entity all you have to is put ~~~ to tel other command block to run the command at the entities position
Why 1.18 again?
Oh it’s just personal preference really
Also checked I think it’s raw_iron?? Not too sure
So I got the load structure command working by itself
But for some reason whenever I try it with the execute command no matter what I type or do it just won’t do anything??
Ok just do this:
Repeat command block:
tag @a[hasitem={item=raw_iron}, c=1] add raw_iron_tag
Connected chain command block:
clear @a[tag=raw_iron_tag, c=1] raw_iron 0 1
Connected chain command block:
give @a[tag=raw_iron_tag, c=1] iron_ore 1
Connected chain command block:
tag @a[tag=raw_iron_tag, c=1] remove raw_iron_tag
It will just change the raw iron by iron ore
In inventories
Oh cool that one worked for inventory!
Now would there be any way to make iron ore block drop when you mine the block instead of raw iron??
Loot tables I think
Oh right
Gonna try looking up a tutorial for that cuz I have even less of an idea on what to do there lol
Thanks!
This is a tutorial on how you use the execute command and showing examples on how it can be used! Any questions please ask!
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Commands: (Wither Banning)
execute @e[type=wither] ~~~ testfor @p[r=12]
execute @e[type=wither] ~~~ kick @p for greifing
tp @e[type=wither] 300...
think this is what youre looking for
i think you could do something like /execute @e[type=item,name=raw_iron] (then your structure load command)
Already tried and a couple of other similar things it seems no matter what I still get a syntax error around the for the raw_iron command
Don’t understand why though since that’s exactly how it’s written
What’s the error
It’s entirely possible it’s not raw_iron
I’ll ask somewhere else
It’s missing something after that that it expects I suppose
What could it be? I’ve tried a couple things but haven’t gotten any different results
Try item.raw_iron.name
I wouldn't try to select items by name, the name depends on the host's language
Atp I feel I could be doing something wrong? cuz this is all i ever get.....
syntax errors
Type refers to type of entity
There is no raw iron entity
It should be like type=item,name=raw_iron although again idk if it’s called raw iron
I have confirmed the name on the ground is “Raw Iron”
So how would the command be typed in full then? Cuz I swear I’m tryin every possible way rn and I’m still getting same results……
I don’t really know tbh I don’t know how the old command works and I couldn’t check it if I tried because idk how to downgrade Minecraft
Are you sure you can’t update to like 1.20
I use the fanmade Bedrock Launcher
But also I was actually able to make it work not with iron ore but at least with honeycomb block! Now there’s just one more issue
It spawns/loads like 5 full stacks of iron ore 