Skip to content

Commit

Permalink
3D printing for all custom items
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenBagTwo committed Oct 5, 2022
1 parent cfafbc5 commit ea1e931
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,48 @@
#
# Called by: chappeau:second

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"aquarium_core.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:3, display:{Name:'{"text":"Aquarium Core"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"aquarium_core.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"fact_sphere.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:6, display:{Name:'{"text":"Fact Sphere"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"fact_sphere.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"morgan_freeman_core.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:4, display:{Name:'{"text":"Morgan Freeman Core"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"morgan_freeman_core.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"rick.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:7, display:{Name:'{"text":"Rick"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"rick.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"space_core.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:5, display:{Name:'{"text":"Space Core"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"space_core.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"wheatley.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:2, display:{Name:'{"text":"Wheatley"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"wheatley.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"him.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:1, display:{Name:'{"text":"HIM"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"him.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"infinity_armor_statue.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:1001, display:{Name:'{"text":"Infinity Armor Statue"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"infinity_armor_statue.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"infinity_armor_helmet.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:1002, display:{Name:'{"text":"Infinity Armor Helmet"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"infinity_armor_helmet.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:brown_mushroom"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"mini-him.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:brown_mushroom", tag:{CustomModelData:1, display:{Name:'{"text":"Mini-Him"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:brown_mushroom"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"mini-him.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:ender_pearl"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"moonescent_pearl.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:ender_pearl", tag:{CustomModelData:1, display:{Name:'{"text":"Moonescent Pearl"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:ender_pearl"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"moonescent_pearl.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:grass"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"oddish.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:grass", tag:{CustomModelData:1, display:{Name:'{"text":"Oddish"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:grass"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"oddish.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:ender_eye"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"scarlet_pearl.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:ender_eye", tag:{CustomModelData:1, display:{Name:'{"text":"Scarlet Pearl"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:ender_eye"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"scarlet_pearl.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"shadow_dweller_mask.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:carved_pumpkin", tag:{CustomModelData:1000, display:{Name:'{"text":"Shadow Dweller Mask"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:carved_pumpkin"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"shadow_dweller_mask.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:poisonous_potato"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"steam_deck.gcode"}'}}}]} run data modify entity @e[type=minecraft:glow_item_frame, distance=0..1, limit=1] Item set value {id:"minecraft:poisonous_potato", tag:{CustomModelData:1, display:{Name:'{"text":"Steam Deck"}'}}, Count:1b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:poisonous_potato"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"steam_deck.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}
execute if block ~ ~1 ~ minecraft:hopper{Items:[{Slot:0b, id:"minecraft:poisonous_potato"}, {Slot:1b, id:"minecraft:paper", tag:{display: {Name: '{"text":"steam_deck.gcode"}'}}}]} run data modify block ~ ~1 ~ Items[{Slot:0b}] merge value {Count:0b}

41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Custom Data Slot: 3

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:3}`

"Filename" for 3D printing: `aquarium_core.gcode`

#### Fact Sphere

Replaces: Carved Pumpkin (wearable)
Expand All @@ -73,6 +75,8 @@ Custom Data Slot: 6

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:6}`

"Filename" for 3D printing: `fact_sphere.gcode`

#### Morgan Freeman Core

Replaces: Carved Pumpkin (wearable)
Expand All @@ -81,6 +85,8 @@ Custom Data Slot: 4

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:4}`

"Filename" for 3D printing: `morgan_freeman_core.gcode`

#### Rick (the Advenute Core)

Replaces: Carved Pumpkin (wearable)
Expand All @@ -89,6 +95,8 @@ Custom Data Slot: 7

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:7}`

"Filename" for 3D printing: `rick.gcode`

#### Space Core

Replaces: Carved Pumpkin (wearable)
Expand All @@ -97,6 +105,8 @@ Custom Data Slot: 5

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:5}`

"Filename" for 3D printing: `space_core.gcode`

#### Wheatley

Replaces: Carved Pumpkin (wearable)
Expand All @@ -105,6 +115,8 @@ Custom Data Slot: 2

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:2}`

"Filename" for 3D printing: `wheatley.gcode`

### Miscellaneous

#### Cursed Goomba (HIM)
Expand All @@ -115,6 +127,8 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:1}`

"Filename" for 3D printing: `him.gcode`

#### Infinity Armor Statue

Replaces: Carved Pumpkin (wearable)
Expand All @@ -123,6 +137,8 @@ Custom Data Slot: 1001

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:1001}`

"Filename" for 3D printing: `infinity_armor_statue.gcode`

#### Infinity Armor (Helmet Only)

Replaces: Carved Pumpkin (wearable)
Expand All @@ -131,6 +147,8 @@ Custom Data Slot: 1002

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:1002}`

"Filename" for 3D printing: `infinity_armor_helmet.gcode`

#### Little Cursed Goomba (Mini-Him)

Replaces: Brown Mushroom
Expand All @@ -139,6 +157,8 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:brown_mushroom{CustomModelData:1}`

"Filename" for 3D printing: `mini-him.gcode`

#### [Moonescent Pearl](https://www.youtube.com/pearlescentmoon)

Replaces: Ender Pearl
Expand All @@ -147,6 +167,8 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:ender_pearl{CustomModelData:1}`

"Filename" for 3D printing: `moonescent_pearl.gcode`

#### Oddish

Replaces: Grass
Expand All @@ -155,6 +177,8 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:grass{CustomModelData:1}`

"Filename" for 3D printing: `oddish.gcode`

#### [Scarlet Pearl](https://www.youtube.com/pearlescentmoon)

Replaces: Eye of Ender
Expand All @@ -163,6 +187,8 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:ender_eye{CustomModelData:1}`

"Filename" for 3D printing: `scarlet_pearl.gcode`

#### Shadow Dweller (OC)

Replaces: Carved Pumpkin (wearable)
Expand All @@ -171,6 +197,8 @@ Custom Data Slot: 1000

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:1000}`

"Filename" for 3D printing: `shadow_dweller_mask.gcode`

#### Steam Deck

Replaces: Poisonous Potato (please do not eat)
Expand All @@ -179,6 +207,7 @@ Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:poisonous_potato{CustomModelData:1}`

"Filename" for 3D printing: `steam_deck.gcode`

## Datapack (Optional)

Expand All @@ -189,6 +218,18 @@ This repo also contains a **datapack** for obtaining some of these items in surv
With the datapack installed in your world, any brewing stand named "Hairo V60" or "Chemex" will brew coffee and espresso
instead of potions (they'll all still have their original effects, just with custom names and textures).

### "3D printing" custom items

To obtain any of the other custom items, craft a hopper and, using an anvil, name it
"[Enderman 3 Pro](https://www.creality.com/products/ender-3-pro-3d-printer)".
Directly below where you place this hopper, place a **glow item frame**, face up.

Then, load any of the base (replaced) items listed above in the first slot, and in the second slot, place a piece of paper
with the names listed for each item above (all will be lowercase, with underscores instead of spaces, and ending in ".gcode").

With the datapack running, the base item will then be removed from the hopper, and the custom item will appear on the ~~heated bed~~
glow item frame.

## Credits and Acknowledgements

The Steam Deck was modeled by me, from scratch, in Blockbench.
Expand Down

0 comments on commit ea1e931

Please sign in to comment.