-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Sleeping bag can be used without the backpack
- Loading branch information
1 parent
ce6e35b
commit b1848e0
Showing
19 changed files
with
499 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
src/main/java/com/tiviacz/travelersbackpack/items/SleepingBagItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
package com.tiviacz.travelersbackpack.items; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.item.BlockItem; | ||
import net.minecraft.item.ItemUsageContext; | ||
import net.minecraft.util.ActionResult; | ||
import net.minecraft.item.BedItem; | ||
|
||
public class SleepingBagItem extends BlockItem | ||
public class SleepingBagItem extends BedItem | ||
{ | ||
public SleepingBagItem(Block block, Settings settings) | ||
{ | ||
super(block, settings); | ||
} | ||
|
||
public ActionResult useOnBlock(ItemUsageContext context) | ||
{ | ||
return ActionResult.FAIL; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/black_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:black_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:black_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/black_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/blue_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:blue_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:blue_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/blue_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/brown_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:brown_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:brown_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/brown_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/cyan_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:cyan_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:cyan_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/cyan_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/gray_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:gray_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:gray_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/gray_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/green_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:green_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:green_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/green_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/light_blue_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:light_blue_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:light_blue_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/light_blue_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/light_gray_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:light_gray_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:light_gray_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/light_gray_sleeping_bag" | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/travelersbackpack/loot_tables/blocks/lime_sleeping_bag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "travelersbackpack:lime_sleeping_bag", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"part": "head" | ||
} | ||
} | ||
], | ||
"name": "travelersbackpack:lime_sleeping_bag" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "travelersbackpack:blocks/lime_sleeping_bag" | ||
} |
Oops, something went wrong.